package com.kollway.android.imagecachelib;

import android.util.Log;

public final class CacheLog {
	
	private CacheLog() {}
	
	private static boolean enable = false;
	
	public static void enable() {
		enable = true;
	}
	
	public static int v(String tag, Object msg) {
		if(!enable) {
			return -1;
		}
		return Log.v(tag, msg + "");
	}
	
	public static int d(String tag, Object msg) {
		if(!enable) {
			return -1;
		}
		return Log.d(tag, msg + "");
	}
	
	public static int i(String tag, Object msg) {
		if(!enable) {
			return -1;
		}
		return Log.i(tag, msg + "");
	}

	public static int w(String tag, Object msg) {
		if(!enable) {
			return -1;
		}
		return Log.w(tag, msg + "");
	}

	public static int e(String tag, Object msg) {
		if(!enable) {
			return -1;
		}
		return Log.e(tag, msg + "");
	}
}
